package com.ty.day1;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : TangYu
 * @create 2023/10/26 16:15
 */
public class Second {
    public static void main(String[] args) {
        //判断数据大小关系
//        int a = 5;
//        int b = 3;
//        if (a > b) {
//            System.out.println(a);
//        } else {
//            System.out.println(b);
//        }
        Scanner sc = new Scanner(System.in);
        System.out.println("1+1=几，\n请输入答案：");
        int x = sc.nextInt();
        if (x == 3 || x == 2) {
            System.out.println("恭喜你，答对了！！");
        } else {
            System.out.println("回答错误！！");
        }

    }
}
